package com.szpx.service.impl;

import com.szpx.entity.MovieFdBean;
import com.szpx.mapper.MovieFdMapper;
import com.szpx.service.MovieFdServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class MovieServerImpl implements MovieFdServer {

    private final MovieFdMapper movieFdMapper;

    @Autowired
    public MovieServerImpl(MovieFdMapper movieFdMapper) {
        this.movieFdMapper = movieFdMapper;
    }

//更改新推送

    @Override
    public List<MovieFdBean> findMoviesByTypeAndNameAndUptime(String type, String fname, Date uptime) {
        return movieFdMapper.findMoviesByTypeAndNameAndUptime(type, fname, uptime);
    }
}